package com.gulimall.gulimallproduct.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gulimall.common.utils.PageUtils;
import com.gulimall.gulimallproduct.entity.AttrGroupEntity;
import com.gulimall.gulimallproduct.vo.AttrGroupWithAttrsVo;
import com.gulimall.gulimallproduct.vo.SkuItemVo;
import com.gulimall.gulimallproduct.vo.SpuItemAttrGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author niujiaxing
 * @email sunlightcs@gmail.com
 * @date 2025-05-08 21:33:57
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params,Long catelogId);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsBycatelog(Long catelogId);
    //查询当前spu对应的所有属性分组信息以及所有属性和对应的值信息
    List<SpuItemAttrGroupVo> getAttrGroupWithAttrsBySpuId(Long spuId, Long catalogId);
}

